<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }
        .img-list{
            width: 300px;
            height: 300px;
            margin: 100px auto;
            position: relative;
            overflow: hidden;
        }
        .img-list li{
            position: absolute;
        }
    /*    修改元素层级来显示指定图片*/
        .img-list li:nth-child(1){
            z-index: 2;
        }
        .pointer{
            position: absolute;
            z-index: 9999;
            bottom: 20px;
        }
        .pointer a{
            width: 10px;
            height: 10px;
            background-color: rgba(0,0,0,.3);
            /*将背景颜色设置到内容区域*/
            background-clip: content-box;
            border: 2px solid transparent;
            display: block;
            border-radius: 50%;
            float: left;
            margin-left: 5px;
        }
        .pointer a.active,
        .pointer a:hover{
            background-color: #777;
            border: 2px solid #ccc;
        }
    </style>
</head>
<body>
<div class="box">
    <ul class="img-list">
        <li><a href="javascript:;"><img src="./img/1.jpg" alt=""></a> </li>
        <li><a href="javascript:;"><img src="./img/2.jpg" alt=""></a> </li>

        <div class="pointer">
            <a class="active" href="javascript:;"></a>
            <a href="javascript:;"></a>
        </div>
    </ul>

</div>


</body>
</html>
